package com.cn.common.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@NoArgsConstructor
@AllArgsConstructor
@Document(indexName ="company",shards = 1,replicas = 1)
@ApiModel(value = "公司信息",description = "用于结束公司实体")
public class CompanyModel extends BaseModel {
    @ApiModelProperty(value = "公司logo",example = "../img/logo.jpg")
    private String logo;
    @ApiModelProperty(value = "公司电话",example = "12345678910")
    private String phone;
    @ApiModelProperty(value = "公司传真",example = "123456")
    private String fax;
    @ApiModelProperty(value = "公司邮箱",example = "123456@qq.com")
    private String email;
    @ApiModelProperty(value = "公司座机",example = "12345678910")
    private String telephone;
    @ApiModelProperty(value = "公司版权",example = "@张伟大律师事务所版权所有")
    private String copyright;
    @ApiModelProperty(value = "公司地址",example = "四川成都xx公司")
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String address;
    private Integer is_show;
    @ApiModelProperty(value = "公司邮编",example = "629211")
    private String code;
    @ApiModelProperty(value = "公司介绍",example = "公司很多帅哥")
    private String text;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCopyright() {
        return copyright;
    }

    public void setCopyright(String copyright) {
        this.copyright = copyright;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getIs_show() {
        return is_show;
    }

    public void setIs_show(Integer is_show) {
        this.is_show = is_show;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setPageNum(int page) {
    }

    @Override
    public String toString() {
        return "CompanyModel{" +
                "logo='" + logo + '\'' +
                ", phone='" + phone + '\'' +
                ", fax='" + fax + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", copyright='" + copyright + '\'' +
                ", address='" + address + '\'' +
                ", is_show=" + is_show +
                ", code='" + code + '\'' +
                ", text='" + text + '\'' +
                '}';
    }

    public void setPageSize(int limit) {
    }

}
